package com.wangzhy.spider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wangzhy.spider.vo.ImgVo;
import com.wangzhy.spider.vo.MerchandisePictureVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author ：wangzy
 * @date ：  2021/9/16 10:20
 * @description： mapper
 */
@Repository
@Mapper
public interface SpiderMapper extends BaseMapper<ImgVo> {

    /**
     * 获取首页图片
     * @return
     */
    List<ImgVo> selectPageLayoutImgList(Map<String,Object> map);

    /**
     * 获取app首页配置图片
     * @return
     */
    List<ImgVo> selectAppHomeConfigImgList();

    /**
     * 获取商品
     * @return
     */
//    List<MerchandisePictureVo>
    Page<MerchandisePictureVo> getMerchandisePicList(Page page);
}
